﻿using System;
using System.IO;

namespace GitNet.WindowsApp.Models;

public class PathData
{
    public string? RepositoryPath { get; set; }
    public string? RepositoryName { get; set; }
    public string ? OpenDate { get; set; }

    public PathData(string repositoryPath)
    {
        RepositoryPath = repositoryPath;
        RepositoryName = new DirectoryInfo(repositoryPath).Name;
        OpenDate = DateTime.Now.ToString("f");
    }
}